<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
request.setAttribute("locale",request.getLocale());
%>
<script type="text/javascript">
</script>

<div class="tabs">
	<div class="tabsHeader">
		<div class="tabsHeaderContent">
			<ul>
				<li><a href="javascript:;"><span>属性列表</span></a></li>
			</ul>
		</div>
	</div>
	<div class="tabsContent">
		<div>
			<div class="panel collapse">
				<h1>高级查询</h1>
				<div>
					<form onsubmit="return navTabSearch(this);" action="<c:url value="/attribute/goAttributeIndex.shtml"/>" method="post">
					<div class="searchBar">
						<table class="searchContent">
							<tr>
								<td>
									属性类型：
								</td>
								<td>
					                <select class="text-input small-input" name="attribute_query_typeValue" id="attribute_query_typeValue">
					                	<option value="">--请选择--</option>
					          			<c:forEach items="${typeList}" var="type">
					          				<option value="${type.typeValue}">${type.typeName}</option>
					          			</c:forEach>
					                </select>
								</td>
							</tr>
						</table>
						<div class="subBar">
							<ul>
								<li><div class="buttonActive"><div class="buttonContent"><button type="submit"><spring:message code="search.btnQuery"/></button></div></div></li>
							</ul>
						</div>
					</div>
					</form>
				</div>
			</div>
			<div id="jbsxBox" class="unitBox">
				<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
					<div class="panelBar">
						<ul class="toolBar">
        					<c:if test="${p:isPower('/attribute/exportAttributeAll.shtml',sessionScope.loginAccount)}">
							<li><a class="icon" href="<c:url value="/attribute/exportAttributeAll.shtml"/>" target="dwzExport" targetType="navTab" title="确实要导出这些记录吗?"><span><spring:message code="search.btnExportXls"/></span></a></li>
							</c:if>
						</ul>
					</div>
					<form id="pagerForm" method="post" action="<c:url value="/attribute/goAttributeIndex.shtml"/>">
						<input type="hidden" name="pageNum" value="${pageNum}" />
						<input type="hidden" name="numPerPage" value="${numPerPage}" />
						<input type="hidden" name="attribute_query_typeValue" value="${attribute_query_typeValue}">
					</form>
					<table class="table" width="100%" layoutH="234">
						<thead>
							<tr>
								<th width="22"><input type="checkbox" group="typeValues" class="checkboxCtrl"></th>
								<th>属性类型</th>
								<th>属性内容</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${atrTypeList}" var="atrType">
							<tr target="sid_user" rel="${atrType.typeValue}">
								<td><input name="typeValues" value="${atrType.typeValue}" type="checkbox"></td>
								<td>${atrType.typeName}</td>
								<td>${atrType.atrNames}</td>
								<td>
        							<c:if test="${p:isPower('/attribute/goAttributeDetail.shtml',sessionScope.loginAccount)}">
									<a title="属性<spring:message code="search.lnkGoDetail"/>" target="navTab" rel="atrShowPage" href="<c:url value="/attribute/goAttributeDetail.shtml"/>?typeValue=${atrType.typeValue}" class="btnView"><spring:message code="search.lnkGoDetail"/></a>
									</c:if>
        							<c:if test="${p:isPower('/attribute/goAttributeAdd.shtml',sessionScope.loginAccount)}">
									<a title="属性<spring:message code="search.lnkGoAdd"/>" target="navTab" rel="atrShowPage" href="<c:url value="/attribute/goAttributeAdd.shtml"/>?typeValue=${atrType.typeValue}" class="btnAdd"><spring:message code="search.lnkGoAdd"/></a>
									</c:if>
        							<c:if test="${p:isPower('/attribute/goAttributeModify.shtml',sessionScope.loginAccount)}">
									<a title="属性<spring:message code="search.lnkGoModify"/>" target="navTab" href="<c:url value="/attribute/goAttributeModify.shtml"/>?typeValue=${atrType.typeValue}" class="btnEdit"><spring:message code="search.lnkGoModify"/></a>
									</c:if>
								</td>
							</tr>
							</c:forEach>
						</tbody>
					</table>
					<div class="panelBar">
						<div class="pages">
							<span>显示</span>
							<select class="numPerPageSet" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
								<option value="15">15</option>
								<option value="30">30</option>
								<option value="50">50</option>
							</select>
							<span>条，共${totalCount}条</span>
						</div>
						<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="${numPerPage}" pageNumShown="5" currentPage="${currentPage}"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="tabsFooter">
		<div class="tabsFooterContent"></div>
	</div>
</div>
